errorValue

Class: com.microstrategy.web.app.taglibs.ErrorValueTag

Usage:

This custom tag allows to display different information about the exception that was generated while executing the page. It is recommended to use it together with the {@link IfErrorValueTag} to verify whether there was an error on the page.
The following example shows the error message using a special formatting only if an error was found during the execution of the page:
 <web:ifErrorValue runat="server" >
   <web:mthen runat="server" >
     <TABLE ID="errorTable" NAME="errorTable" CELLSPACING="0" CELLPADDING="0" BORDER="0" WIDTH="90%">
       <TR>
         <TD ALIGN="LEFT">
           <HR SIZE="1" /><SPAN CLASS="error-title><web:errorValue mproperty="title" runat="server" /></SPAN><BR /><BR />
           <web:errorValue mproperty="message" runat="server" /><BR />
           <HR SIZE="1" /><BR />
         </TD>
       </TR>
     </TABLE>
   </web:mthen>
 </web:ifErrorValue>
 


Name Required? Description
default false Indicates if a default message should be displayed, instead of the one that had been specified for this error (if any).
Usage:
The value defined for this attribute might be one or more descriptors to display to the user. For example:
 <web:errorValue property="message" default="mstrWeb.838;mstrWeb.837"/>
 

This will display as error message a concatenation of the strings coming from the descriptors 838 and 837.
mproperty true Indicates the property of the error to get displayed.
Usage:
Possible values for this attribute include:
  • stackTrace - for rendering the stack trace information about the exception
  • root - for rendering the root of the exception, if available.
  • title - for displaying the title of the error to show, obtained from the template's definition.
  • message - for displaying the message defined for the exception.
  • contactInfo - for rendering contact information defined for the application, in case of errors.
  • runat true Indicates that the ASP.Net control should be processed on the server